<template>
  <div>
    <p>-----------------</p>
    <p>name:{{ storeZhs.person.name }}</p>
    <p>age:{{ storeZhs.person.age }}</p>
    <p>count:{{ storeZhs.count }}</p>
    <button @click="updataNum">修改数据</button>
  </div>
</template>

<script setup>
import { useStoreZhs } from "../stores/index_zhs";
const storeZhs = useStoreZhs();
console.log("============");
console.log(storeZhs);
const updataNum = () => {
  storeZhs.changeCount()
};
</script>

<style>
</style>